<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: CommandQueue类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('class_command_queue.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-attribs">静态 Public 属性</a> &#124;
<a href="#pri-methods">Private 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="class_command_queue-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">CommandQueue类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>A structure for managing commands  
 <a href="class_command_queue.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="command_queue_8h_source.html">commandQueue.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a80d86eb1a3b1dd57ea84bde88fd295ee"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_command_queue.html#a80d86eb1a3b1dd57ea84bde88fd295ee">CommandQueue</a> ()</td></tr>
<tr class="memdesc:a80d86eb1a3b1dd57ea84bde88fd295ee"><td class="mdescLeft">&#160;</td><td class="mdescRight">Defaut Constructor  <a href="class_command_queue.html#a80d86eb1a3b1dd57ea84bde88fd295ee">更多...</a><br /></td></tr>
<tr class="separator:a80d86eb1a3b1dd57ea84bde88fd295ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae02deec8bd98cd435972d7e26de9135b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_command_queue.html#ae02deec8bd98cd435972d7e26de9135b">CommandQueue</a> (unsigned int max_size)</td></tr>
<tr class="memdesc:ae02deec8bd98cd435972d7e26de9135b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor  <a href="class_command_queue.html#ae02deec8bd98cd435972d7e26de9135b">更多...</a><br /></td></tr>
<tr class="separator:ae02deec8bd98cd435972d7e26de9135b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4575d426ec483ab4778da0650c0556bb"><td class="memItemLeft" align="right" valign="top"><a id="a4575d426ec483ab4778da0650c0556bb"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_command_queue.html#a4575d426ec483ab4778da0650c0556bb">~CommandQueue</a> ()</td></tr>
<tr class="memdesc:a4575d426ec483ab4778da0650c0556bb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor <br /></td></tr>
<tr class="separator:a4575d426ec483ab4778da0650c0556bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5428e7b41da441f80ed9ec8656aebde4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_command_queue.html#a5428e7b41da441f80ed9ec8656aebde4">execute</a> (<a class="el" href="local_types_8h.html#a7e9464d95cb6863e6a188a54282b3a98">CommandPtr</a>)</td></tr>
<tr class="memdesc:a5428e7b41da441f80ed9ec8656aebde4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Executes a command. If the command has an undo function, then adds the command to the queue.  <a href="class_command_queue.html#a5428e7b41da441f80ed9ec8656aebde4">更多...</a><br /></td></tr>
<tr class="separator:a5428e7b41da441f80ed9ec8656aebde4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d27b61af07a5e036b0f555196e8a29d"><td class="memItemLeft" align="right" valign="top"><a id="a7d27b61af07a5e036b0f555196e8a29d"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_command_queue.html#a7d27b61af07a5e036b0f555196e8a29d">undo</a> ()</td></tr>
<tr class="memdesc:a7d27b61af07a5e036b0f555196e8a29d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Undoes the last command by poping the tail of the queue, invoke the undo function of the command. <br /></td></tr>
<tr class="separator:a7d27b61af07a5e036b0f555196e8a29d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56e82b9ca9b8a703fecb3c6be0f87696"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_command_queue.html#a56e82b9ca9b8a703fecb3c6be0f87696">setMaxSize</a> (unsigned int size)</td></tr>
<tr class="separator:a56e82b9ca9b8a703fecb3c6be0f87696"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
静态 Public 属性</h2></td></tr>
<tr class="memitem:af134156818c2a8283e4d53cd28df0820"><td class="memItemLeft" align="right" valign="top"><a id="af134156818c2a8283e4d53cd28df0820"></a>
static const unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_command_queue.html#af134156818c2a8283e4d53cd28df0820">DEFAULT_MAX_SIZE_</a> = 200</td></tr>
<tr class="memdesc:af134156818c2a8283e4d53cd28df0820"><td class="mdescLeft">&#160;</td><td class="mdescRight">The default maximal size of the depth limit <br /></td></tr>
<tr class="separator:af134156818c2a8283e4d53cd28df0820"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private 成员函数</h2></td></tr>
<tr class="memitem:ac829d35ed9d50374f86118c33579cc01"><td class="memItemLeft" align="right" valign="top"><a id="ac829d35ed9d50374f86118c33579cc01"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_command_queue.html#ac829d35ed9d50374f86118c33579cc01">CommandQueue</a> (const <a class="el" href="class_command_queue.html">CommandQueue</a> &amp;)</td></tr>
<tr class="memdesc:ac829d35ed9d50374f86118c33579cc01"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy constructor - object is non-copyable <br /></td></tr>
<tr class="separator:ac829d35ed9d50374f86118c33579cc01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aacf2b38a40b8c9c98350a9fc8585d023"><td class="memItemLeft" align="right" valign="top"><a id="aacf2b38a40b8c9c98350a9fc8585d023"></a>
<a class="el" href="class_command_queue.html">CommandQueue</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_command_queue.html#aacf2b38a40b8c9c98350a9fc8585d023">operator=</a> (const <a class="el" href="class_command_queue.html">CommandQueue</a> &amp;)</td></tr>
<tr class="memdesc:aacf2b38a40b8c9c98350a9fc8585d023"><td class="mdescLeft">&#160;</td><td class="mdescRight">Equal operator - object is non-copyable <br /></td></tr>
<tr class="separator:aacf2b38a40b8c9c98350a9fc8585d023"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04b512001c88c45ad5822653a56a2fd5"><td class="memItemLeft" align="right" valign="top"><a id="a04b512001c88c45ad5822653a56a2fd5"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_command_queue.html#a04b512001c88c45ad5822653a56a2fd5">enforceDequeLimit</a> ()</td></tr>
<tr class="memdesc:a04b512001c88c45ad5822653a56a2fd5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enforces the depth limit of the command queue. If the depth is larger than the depth limit, a deque operation will be invoked. <br /></td></tr>
<tr class="separator:a04b512001c88c45ad5822653a56a2fd5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a8c19c769b294cb230595191365a8eb34"><td class="memItemLeft" align="right" valign="top"><a id="a8c19c769b294cb230595191365a8eb34"></a>
std::deque&lt; <a class="el" href="local_types_8h.html#a7e9464d95cb6863e6a188a54282b3a98">CommandPtr</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_command_queue.html#a8c19c769b294cb230595191365a8eb34">command_deque_</a></td></tr>
<tr class="memdesc:a8c19c769b294cb230595191365a8eb34"><td class="mdescLeft">&#160;</td><td class="mdescRight">The internal representation of this object. <br /></td></tr>
<tr class="separator:a8c19c769b294cb230595191365a8eb34"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c4af33c8d8c7d0dc375234f37b6baa9"><td class="memItemLeft" align="right" valign="top"><a id="a2c4af33c8d8c7d0dc375234f37b6baa9"></a>
unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_command_queue.html#a2c4af33c8d8c7d0dc375234f37b6baa9">depth_limit_</a></td></tr>
<tr class="memdesc:a2c4af33c8d8c7d0dc375234f37b6baa9"><td class="mdescLeft">&#160;</td><td class="mdescRight">The depth limit of the command queue. <br /></td></tr>
<tr class="separator:a2c4af33c8d8c7d0dc375234f37b6baa9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>A structure for managing commands </p>
<p>A command queue object provides a dequeue of commands as well as operations to manipulate the commands in the queue. Operations include executing and undoing the commands in the queue. A command queue object is non-copyable. </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a80d86eb1a3b1dd57ea84bde88fd295ee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a80d86eb1a3b1dd57ea84bde88fd295ee">&#9670;&nbsp;</a></span>CommandQueue() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CommandQueue::CommandQueue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Defaut Constructor </p>
<p>Creates a command queue object and makes its depth limit be the default value. </p>

</div>
</div>
<a id="ae02deec8bd98cd435972d7e26de9135b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae02deec8bd98cd435972d7e26de9135b">&#9670;&nbsp;</a></span>CommandQueue() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CommandQueue::CommandQueue </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>max_size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor </p>
<p>Create a command queue with specified depth limit. </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">max_size</td><td>the value to be used to set the depth limit of this object. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a5428e7b41da441f80ed9ec8656aebde4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5428e7b41da441f80ed9ec8656aebde4">&#9670;&nbsp;</a></span>execute()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CommandQueue::execute </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="local_types_8h.html#a7e9464d95cb6863e6a188a54282b3a98">CommandPtr</a>&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Executes a command. If the command has an undo function, then adds the command to the queue. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">command_ptr</td><td>a shared pointer pointing to a command object whose execute function will be invoked by this object. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a56e82b9ca9b8a703fecb3c6be0f87696"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a56e82b9ca9b8a703fecb3c6be0f87696">&#9670;&nbsp;</a></span>setMaxSize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int CommandQueue::setMaxSize </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>@breif Changes the command history limit.</p>
<p>If the passed size is smaller than the current size then the oldest commands are removed (their undo functions are not called). </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">size</td><td>The new maximum number of commands that may exist in this queue for undo purposes. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>The actual maximum size set. It may happen that the passed value is too large and cannot be set. </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>apps/point_cloud_editor/include/pcl/apps/point_cloud_editor/<a class="el" href="command_queue_8h_source.html">commandQueue.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_command_queue.html">CommandQueue</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
